/**
 * 
 */
package uk.co.cocking.getinline2.restlet.test;

import org.restlet.Restlet;
import org.restlet.data.Reference;
import org.restlet.data.Response;

public class QueryTrackingRestlet extends Restlet {
	private String query;

	@Override
	public void handle(org.restlet.data.Request request, Response response) {
		query = request.getResourceRef().getQuery();
		System.out.println("request: "+request.getOriginalRef());
	}

	public String getQuery() {
		return query == null ? "" : Reference.decode(query);
	}

}